<div class="post">
	<div class="title"><?php echo CHtml::link(CHtml::encode($data->title), $data->url); ?></div>
	<div class="author">
		posted by <?php echo $data->author->username . ' on ' . date('F j, Y',$data->create_time); ?>
	</div>
	<div class="content">
		<?php echo CHtml::image(Yii::app()->request->baseUrl."/images/".$data->photo,"calendar",array("id"=>"gambar", "width"=>"90", "height"=>"59")); ?>
		<?php
			$conttent = substr($data->content, 0, 250);
			$this->beginWidget('Markdown', array('purifyOutput'=>true));
			echo $conttent;
			$this->endWidget();
		?>
		<?php echo CHtml::link(CHtml::encode('read more'), $data->url); ?>
	</div>
	
</div>
